package com.haiyi.test.demo.jpa;

import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
@CacheConfig(cacheNames = "users")
public interface UserRepository extends JpaRepository<User, Long> {
    //@Cacheable
    User findByName(String name);



}